﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="iProductManager.aspx.cs"
    Inherits="WebApp.Management.Product.iProductManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ListView ID="ListView1" runat="server" 
            OnItemCommand="lvActivity_ItemCommand" 
            onpagepropertieschanged="ListView1_PagePropertiesChanged">
            <LayoutTemplate>
                <table cellpadding="2" border="1">
                    <tr>
                        <th>
                            产品名
                        </th>
                        <th>
                            需要积分
                        </th>
                        <th>
                            排序
                        </th>
                        <th>
                            编辑
                        </th>
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </table>
                <asp:DataPager ID="dpActivity" runat="server" PagedControlID="ListView1" PageSize="100">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True" ShowNextPageButton="False"
                            ShowPreviousPageButton="False" />
                        <asp:NumericPagerField />
                        <asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="True" ShowNextPageButton="False"
                            ShowPreviousPageButton="False" />
                    </Fields>
                </asp:DataPager>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("name") %>
                    </td>
                    <td>
                        <%#Eval("Point") %>
                    </td>
                    <td>
                        <%# Eval("Sequence")%>
                    </td>
                    <td>
                        <asp:LinkButton ID="btnDelete" runat="server" OnClientClick="return confirm('确认删除?');" CommandName="OnDelete" CommandArgument='<%# Eval("id") %>'>Delete</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </div>
    </form>
</body>
</html>
